
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>

    <script src="https://cdn.jsdelivr.net/npm/golden-layout@1.5.9/dist/goldenlayout.min.js"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/golden-layout@1.5.9/src/css/goldenlayout-base.css" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/golden-layout@1.5.9/src/css/goldenlayout-dark-theme.css" />

    <script>
        var require = {
            paths: {
                "vs": "https://unpkg.com/monaco-editor/min/vs",
                "monaco-vim": "https://unpkg.com/monaco-vim/dist/monaco-vim",
                "monaco-emacs": "https://unpkg.com/monaco-emacs/dist/monaco-emacs"
            }
        };
    </script>
    <script src="https://cdn.jsdelivr.net/npm/monaco-editor@0.23.0/min/vs/loader.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/monaco-editor@0.23.0/min/vs/editor/editor.main.nls.zh-cn.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/monaco-editor@0.23.0/min/vs/editor/editor.main.js"></script>

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css"/>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>

    <link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/gh/azeng233/Resources-accelerate@main/IDE/css/ide.css">

    <title>Personal IDE</title>
</head>

<body>
<div id="site-navigation" class="ui small inverted menu">
    <div id="site-header" class="header item">
        <a href="/">
            <img id="site-icon" src="https://cdn.jsdelivr.net/gh/azeng233/Resources-accelerate@main/IDE/images/judge0_icon.png">
            <h2>Personal IDE</h2>
        </a>
    </div>
    <div class="left menu">
        <div class="ui dropdown item site-links on-hover">
            文件 <i class="dropdown icon"></i>
            <div class="menu">
                <div class="item" onclick="downloadSource()"><i class="download icon"></i> 下载</div>
                <div id="insert-template-btn" class="item"><i class="file code outline icon"></i> 写入模板</div>
            </div>
        </div>
        <div class="link item" onclick="$('#site-settings').modal('show')"><i class="cog icon"></i> 设置</div>
        <div class="item borderless">
            <select id="select-language" class="ui dropdown">
                <!--<option value="46" mode="shell">Bash (5.0.0)</option>-->
                <!--<option value="75" mode="c">C (Clang 7.0.1)</option>-->
                <!--<option value="1013" mode="c">C (Clang 9.0.1)</option>-->
                <!--<option value="1001" mode="c">C (Clang 10.0.1)</option>-->
                <!--<option value="48" mode="c">C (GCC 7.4.0)</option>-->
                <!--<option value="49" mode="c">C (GCC 8.3.0)</option>-->
                <option value="50" mode="c">C (GCC 9.2.0)</option>
                <!--<option value="51" mode="csharp">C# (Mono 6.6.0.161)</option>-->
                <!--<option value="1022" mode="csharp">C# (Mono 6.10.0.104)</option>-->
                <!--<option value="1021" mode="csharp">C# (.NET Core SDK 3.1.302)</option>-->
                <!--<option value="1023" mode="csharp">C# Test (.NET Core SDK 3.1.302, NUnit 3.12.0)</option>-->
                <!--<option value="76" mode="cpp">C++ (Clang 7.0.1)</option>-->
                <!--<option value="1014" mode="cpp">C++ (Clang 9.0.1)</option>-->
                <!--<option value="1002" mode="cpp">C++ (Clang 10.0.1)</option>-->
                <!--<option value="52" mode="cpp">C++ (GCC 7.4.0)</option>-->
                <!--<option value="53" mode="cpp">C++ (GCC 8.3.0)</option>-->
                <option value="54" mode="cpp">C++ (GCC 9.2.0)</option>
                <!--<option value="1015" mode="cpp">C++ Test (Clang 10.0.1, Google Test 1.8.1)</option>-->
                <!--<option value="1012" mode="cpp">C++ Test (GCC 8.4.0, Google Test 1.8.1)</option>-->
                <!--<option value="1003" mode="c">C3 (latest)</option>  -->
                <!--<option value="62" mode="java">Java (OpenJDK 13.0.1)</option>-->
                <option value="1004" mode="java">Java (OpenJDK 14.0.1)</option>
                <!--<option value="1005" mode="java">Java Test (OpenJDK 14.0.1, JUnit Platform Console Standalone 1.6.2)</option>-->
                <!--        <option value="63" mode="javascript">JavaScript (Node.js 12.14.0)</option>-->
                <!--<option value="78" mode="kotlin">Kotlin (1.3.70)</option>-->
                <!--<option value="64" mode="lua">Lua (5.3.5)</option>-->
                <!--<option value="67" mode="pascal">Pascal (FPC 3.0.4)</option>-->
                <!--<option value="68" mode="php">PHP (7.4.1)</option>-->
                <!--<option value="70" mode="python">Python (2.7.17)</option>-->
                <option value="71" mode="python">Python (3.8.1)</option>
                <!--<option value="72" mode="ruby">Ruby (2.7.0)</option>-->
                <!--<option value="73" mode="rust">Rust (1.40.0)</option>-->
                <!--<option value="74" mode="typescript">TypeScript (3.7.4)</option>-->
            </select>
        </div>
        <div class="item fitted borderless wide screen only">
            <div class="ui input">
                <input id="compiler-options" type="text" placeholder="编译器参数"></input>
            </div>
        </div>
        <div class="item borderless wide screen only">
            <div class="ui input">
                <input id="command-line-arguments" type="text" placeholder="命令行参数"></input>
            </div>
        </div>
        <div class="item no-left-padding borderless">
            <button id="run-btn" class="ui primary labeled icon button"><i class="play icon"></i>运行(F9)</button>
        </div>
        <div id="navigation-message" class="item borderless">
            <span id="nav-msg"></span>
            <span class="navigation-message-text"></span>
        </div>
    </div>
    <div class="right menu">
    </div>
</div>

<div id="site-content"></div>

<div id="site-modal" class="ui modal">
    <div class="header">
        <i class="close icon"></i>
        <span id="title"></span>
    </div>
    <div class="scrolling content"></div>
    <div class="actions">
        <div class="ui small labeled icon cancel button">
            <i class="remove icon"></i>
            关闭 (ESC)
        </div>
    </div>
</div>

<div id="site-settings" class="ui modal">
    <i class="close icon"></i>
    <div class="header">
        <i class="cog icon"></i>
        设置
    </div>
    <div class="content">
        <div class="ui form">
            <div class="inline fields">
                <label>编辑器模式</label>
                <div class="field">
                    <div class="ui radio checkbox">
                        <input type="radio" name="editor-mode" value="normal" checked="checked">
                        <label>正常</label>
                    </div>
                </div>
                <div class="field">
                    <div class="ui radio checkbox">
                        <input type="radio" name="editor-mode" value="vim">
                        <label>Vim</label>
                    </div>
                </div>
                <div class="field">
                    <div class="ui radio checkbox">
                        <input type="radio" name="editor-mode" value="emacs">
                        <label>Emacs</label>
                    </div>
                </div>
            </div>
            <div class="inline field">
                <div class="ui checkbox">
                    <input type="checkbox" name="redirect-output">
                    <label>重定向stderr至stdout</label>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="site-footer">
    <span>Sinicization was completed by <a href="https://zengchen233.cn/">曾 晨</a></span>
    <div id="editor-status-line"></div>
    <span id="status-line"></span>
</div>

<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/azeng233/Resources-accelerate@main/IDE/third_party/download.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/azeng233/Resources-accelerate@main/IDE/js/ide.js"></script>
<link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/azeng233/Resources-accelerate@main/IDE/images/favicon.ico" type="image/x-icon">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/azeng233/Resources-accelerate@main/IDE/images/favicon.ico" type="image/x-icon">
</body>

</html>
